package com.jimikongjian.dao;

import com.jimikongjian.models.Following;

import java.util.List;

/**
 * Created by fuxiuyang on 17/2/20.
 */
public interface IFollowing {

    /**
     * 通过自身id号，获取某一确定的关注信息
     * @param id
     * @return List<Following>
     */
    public List<Following> getFollowingListById(int id);

    /**
     * 通过自身的id号，获取某一确定的关注信息
     * @param id
     * @return Following
     */
    public Following getFollowingById(int id);

    /**
     * 通过用户id，查找自己正在关注用户的信息
     * @param userId
     * @return List<Following>
     */
    public List<Following> getFollowingListByUserId(int userId);

    /**
     * 通过被关注者的id，查找正在关注自己的用户
     * @param followingId
     * @return List<Following>
     */
    public List<Following> getFollowingListByFollowingId(int followingId);

    /**
     * 创建一个新的关注
     * @param following
     */
    public void insertFollowing(Following following);

    /**
     * 更新一个新的关注
     * @param following
     */
    public void updateFollowing(Following following);

    /**
     * 删除一个关注
     * @param following
     */
    public void deleteFollowing(Following following);
}
